Add further tests for repository