Pin minitest down to < v5.0.0

The new major release issues warnings on unit tests and break
integration tests.