tests with hamcrest