Added hook to modify test result output