patient test result bug fix