Added change email functionality and tests.