Improved robustness & added tests for VersionFactory::get