Test cleanup

@kevgo

Push some code into helpers and introduce a few more run helpers
Another possible name for this could be `integer_output_of`