added mbtiles test file
Added some error checking