Augment result map before printing result

Fixes an issue with the test var being printed as nil on failures.