pass given test cases