Use ActiveSupport::Test as base test class

Fixes test warnings caused by Minitest base class being different in 4.x and 5.x.

Minitest is included by rails via ActiveSupport, except for 3.2. For 3.2, we include it in the 3.2 Gemfile.