Set scope of hamcrest and mockito dependencies to test