Add test cases about Hamcrest