Added tests for QOS.

Inspired by comments in issue #18