Catch error when creating a user fails in the tests