Remove duplication in test_helper.rb