TRQ-2098. Add a unit test.
Merge branch '4.2-dev' of https://github.com/adaptivecomputing/torque into 4.2-dev