fixed queue bug, added test
Merge pull request #229 from zaphod1984/queueHotfix

Bugfix for error propagation in Queue