Added a test-case for add using hamcrest.