Test repository with secured methods