Added testcase with hamcrest lib