Restructured repository tests to use protocol tests
Moved repository factory related files out of the repositories directory
Removed unused method
Added unit tests for default resource factory and adjusted the resource factory protocol test
Enabling missing observer protocol tests and fixed found bugs