     type: 'UNIQUENESS'
     property_keys: [ 'uuid' ]
 
-  node = db.nodes({uuid: "#{Math.floor(Math.random()*(999999999-1+1)+1)}"}).labels.set('Special')
+  node = db.nodes({uuid: "#{Math.floor(Math.random()*999999998)}"}).labels.set('Special')
   test.equal db.constraint.create('Special', ['uuid']), res
   test.equal db.constraint.get(), [res]
   test.equal db.constraint.get('Special'), [res]

###
Tinytest.add 'Neo4jNode - n.index - create() / get() / drop() (you will see `UnknownFailure` error in console)', (test) ->

  node = db.nodes({uuid: "#{Math.floor(Math.random()*(999999999-1+1)+1)}"}).labels.set('Special')
  index = node.index.create('Special', 'uuid')
  test.isTrue _.isObject index
  uri = index.indexed


  n1 = db.nodes()
  n2 = db.nodes()
  r = n1.to n2, 'Special', {uuid: "#{Math.floor(Math.random()*999999998)}"}
  index = r.index.create('Special', 'uuid')
  test.isTrue _.isObject index
  uri = index.indexed
