This is cool. I wonder if this can be moved to a mixin or utility class as other tests can take advantage.