repository tests using apis

Added few positive tests for repository create/update and delete
Great. FYI, this same change can be made in quite a number of places. Doing so should allow the tests to shrink quite a bit. (: