Ignore duplicate profiles by the MD5 checksum and add self test code to test this