fixed to run test with minitest