Fix broken leaftlet tests, move TileSource construction to create method