This helped make refactoring tests for this commit easier. Since its just the addition of a convenience method to a testing utility, I figured it was fine to bundle it with this change.