fixed query for old versions and fixed tests to not check for the non existant versionpaths on the entity anymore