tests for repository factories