Set status to 201 (created) if new
Added check on isExisting when computing isNew
Updated test to assert set on name instead of username