API Enable use of custom repositories for testing