flag-controlled custom component testing