modified mock to behave closer to other repositories