Added unit tests for versionIndex