make sure test cases matches code