Add unit tests for ip_record.js