See above comment. And since we're using this in multiple places, move out to a test util class?