fixed bug with missing version number and updated unit tests