replaced userpository with mock for tests