Add a test for singleton repository