test result loop