Fix creation of dummy API user in test mode

When the dummy API user doesn't exist its creation is attempted, that
previously failed due to a misuse of the active record mass assignment
API.