This method exists in test_helper, maybe it should get moved out of there, too?