Corrected Repository pattern
Fixed tests and structure
Fixed responsibility