fix #67 and adjust corresponding test to include tile_width and tile_hei...

...ght checking