repository tests using apis

Added few positive tests for repository create/update and delete
I wasn't aware if entities can handle automatic dependency creation. will update the PR.