write test for change-email