tests: switch to minitest 5

This pull request switches from Test::Unit to Minitest 5's syntax. It also refactors the duplicated test requires lines into test_helper.