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