tests: test coverage for flag