Fix email bug in admin edit user page.
Add test for admin edit user page.