move test/utilities.py to vsc/utils/testing.py so it can be reused by ot...

...her projects
rename second variable to pattern to clarify this (unless compiled partterns are allowed)