fix unit tests for generate tiles"