Added Repositories and tests