test-lib: refactor $GIT_SKIP_TESTS matching