Test api to get repository