updated sync test to use api's to create product/repo
Merge pull request #1348 from sghai/sync-test

updated sync test to use api's to create product/repo