wip: remove RepositoryRef class
wip: specs: fix tests