         rObj = new ComplexNumber 0, 0
         rObj.square = (x) -> x * x
         # forgot to: return rObj
-      arya.register 'ComplexNumber', constrProxy, true
+      arya.register "ComplexNumber", constrProxy, true
       TEST_OBJ = new ComplexNumber 2, 3
       arya.save TEST_OBJ, mem.output, (err, uuid) ->
         throw err if err?

    it "can restore objects using constructors", (done) ->
      class ComplexNumber
        constructor: (@r, @i) ->
      arya.register 'ComplexNumber', ComplexNumber
      TEST_OBJ = new ComplexNumber 2, 3
      arya.save TEST_OBJ, mem.output, (err, uuid) ->
        throw err if err?

        throw "bad uuid" if not uuid?
        arya.load uuid, mem.input, (err, obj) ->
          should.exist obj
          obj.should.have.properties ["alice", "bob"]
          obj.uuid.should.equal uuid
          obj.alice.should.equal "Alice"
          should(obj.bob).equal null
