Passing given test cases