Adding a helper to extend MiniTest.

Implemented Rspec’s “expect {}.to change {}.by(x)”.
Refactoring the tests making them more independent.