finished refactoring and fixed all tests
1. extracted base repository
2. repository tests actually hit db
3. refactored service tests