Versions unit test

Junit tests for Versioning. Need a review.