tiles.js - add tests for grid mode