tests: add hook to specify if a test has been skipped.

This is totally janky, but so is the entire testing system.
build: fix make distcheck.