         Backbone.WebSQL.prototype._executeSql.calledWith("CREATE TABLE IF NOT EXISTS `klass` (`id` unique, `value`, `user_id`);")
       ).to.be.true
 
+      expect(Backbone.WebSQL.prototype._executeSql.calledOnce).to.be.true
+
     it 'can be defined by multiple array', ->
       Klass = Backbone.Model.extend
         store: new Backbone.WebSQL(db, 'klass', ['user_id', 'parent_id'])

          Backbone.WebSQL.prototype._executeSql.secondCall.calledWith("CREATE INDEX IF NOT EXISTS `klass_user_id_parent_id` ON `klass` (user_id, parent_id);")
        ).to.be.true

    context 'when index is two dimensions array and elements are multiple', ->
      it 'should execute expected index query', ->
        Klass = Backbone.Model.extend

      expect(
        Backbone.WebSQL.prototype._executeSql.calledWith("CREATE TABLE IF NOT EXISTS `klass` (`id` unique, `value`, `user_id`, `parent_id`);")
      ).to.be.true

      expect(Backbone.WebSQL.prototype._executeSql.calledOnce).to.be.true

    it 'should throw an error if unknown type is passed', ->
      fn = -> Klass = Backbone.Model.extend
