Added PackageRepository. Modified tests to support this new structure
Clear repository only when we know we should in spec testing, not as a default behaviour for every describe