Flags, Flow States and Metadata Test application