move isIdentical to head_interests.js and clean up test files using it