tiles.js - add functionality tests