added test for flag macro