[PATCH v3 11/32] selftests: harness: Add teardown callback to test metadata