Repository test + mock for handler