Updated test results code