Verify test result in test code