passed the test for  all test scenarios