Add `helper` method to tests

As suggested on #411. I took the opportunity to get the same features into the MiniTest integration as are in the RSpec version.