fixed unit tests, added interface for users repository