add simple unit test mechanism