Refactored tests, added dependency on Hamcrest

FIrst step towards https://github.com/JCTools/JCTools/issues/10