DRY out StructureParserTests

the copy-and-paste was getting out of hand