Fixed JUnit and Hamcrest dependencies to get rid of NoSucheMethodError.