bugfixes & unittest for warnMissing option