Updated unit tests for trq_auth. copied from 4.2-dev