Change tests to minitest specs

Workaround updates in minitest library in different ruby versions