added tests for repositories controller