modify flag for tests