This is why many of the tests are failing... you can't count on initialTileSource to always be defined. Add a `if ( initialTileSource ) {` around this call.