Why my one test case is not passing?