repository tests using apis

Added few positive tests for repository create/update and delete
No assertion makes use of `key_2_name`, so I think it can be dropped.