updating version querying method and adding unit tests to verify for each different vcs