SW-382: fixed test_add_queue_raises. Fixed handling of QUEUE variable which enable usage from ctest (via the .run file) and running the test from within pycharm