Added integration tests for OSM, WMTS and WMS.

Fixed bug with WMTS and Geoserver,

Added several tests.