Learning how to use MiniTest

Improved the tests
Small improvements to the code