Making tests that check for presence of triples less brittle

Fixes https://www.pivotaltracker.com/story/show/61351914 (for reals this time)