added a simple test, need to add a mock framework like mockito