fixed bug in email test