add code to handle test result metrics