fix flags for tests