testing user model for portal. tests pass.