Add tests for the rest of email_record.js