Various fixes to PdoTest
* Removed calls to arrayHasKey in unit tests.
* Added test of refresh token.