Fixed test result processing (result was not linked to test).