tests for flags