fix migration to not require some user attributes; fix tests