Filling out the logic for the test results module