Move hamcrest and mockito to test scope

Reducing dependencies a bit.