add testDisableWarning to Header core code