match -> test

Using RegExp method `test` because this is what is wanted