repository tests using apis
Merge pull request #1274 from sghai/repo-api

repository tests using apis