Cleans up tests with minitest
Fixes ruby 1.8 compat