helpers were within test, moved them outside