fix tests to run on minitest > 5