Fix the bug of generating reftest by checking the value of 'rel' attribute of the 'link' element
whether equals "match" or "mismatch".
Uniq the reftest.
Merge pull request #911 from BruceDai/fix_generating_reftest

Fix the bug of generating reftest by checking the value of 'rel' attribu...