created unittests and factored out version test into seperate method