finished test cases and output