Add unit test cases

Fix Version class to comply with unit test cases