api: added test with wrong json for creating a repository.