fixed test by adding hamcrest

implemented sample test