Fixes issue with test result serialization