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