Fix test failures in the TMS imagery provider.

The failures were introduced with pull request #364.
Merge pull request #421 from AnalyticalGraphicsInc/fixTmsTestFailures

Fix test failures in the TMS imagery provider.