added a simple unit test
(#486)