implemented a unit test