fix mocks for set_user