Add tests for flags options