Fix test failures in the TMS imagery provider.

The failures were introduced with pull request #364.