Move flag tests to a fixture.