SERVER-7756: add test, was fixed by matcher refactor