added unit test for getVersion