added test for global option