applying unit tests