repository tests using apis

Added few positive tests for repository create/update and delete
Sure..On it.. will try and update the PR.