refactored cfg.error update test