If you have minimatch, why do you then also need this test?