test for adding repository