Add js tests for createTile