Tweak parse_testdata function in test runner