return test result code