fixed test to remove console.log
added some max constants to warningdialog