Added unit tests for TRQ-2135. Invalid Credential error.
Merge branch '4.2-dev' of https://github.com/adaptivecomputing/torque into 4.2-dev