add unit test for version