Add unit tests for ip_email_record.js