Add some extra sanity checks to make sure the test functions actually
run on altstack.