Fixed wrong test filename
Implemented a generic repository pattern