Added warning test for qmgr, and made warning pattern generic