Imporved tests for full document match in match.js