Test cleanup

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