matching test cases

Generating correct output but failing tests.