Fix global options in tests