Partial Repos API implementation

Add tests
Split Integration and Unit tests