fixed all test cases for minitest with Rails 3.2.12