Abstract method for repository testing