tests for Flags