Added support for flags to per-test metadata