         background: "#ffffdd"
       })
       idea.save (err) ->
-        expect(err).to.be null
+        expect(err).to.be(null)
         dotstorm.groups.push new models.IdeaGroup(ideas: [idea._id])
         dotstorm.save (err) ->
           expect(err).to.be(null)
           models.Idea.findOne {}, (err, idea) ->
-            expect(err).to.be null
+            expect(err).to.be(null)
+            expect(idea).to.not.be(null)
             expect(idea.description).to.be "open to creative possibility"
             done()
 
   it "creates a drawing", (done) ->
     models.Idea.findOne {dotstorm_id: @dotstorm._id}, (err, idea) =>
-      expect(err).to.be null
+      expect(err).to.be(null)
       idea.drawing = [["pencil", 0, 0, 64, 64]]
       idea.background = "#ffffff"
       idea.save (err) ->
-        expect(err).to.be null
+        expect(err).to.be(null)
         expect(idea.drawingURLs.small).to.be "/uploads/dotstorm/idea/#{idea._id}/drawing/small#{idea.imageVersion}.png"
         expect(fs.existsSync idea.getDrawingPath("small")).to.be true
         done()
 
   it "returns light ideas", (done) ->
     models.Idea.findOneLight {dotstorm_id: @dotstorm._id}, (err, idea) =>
-      expect(err).to.be null
+      expect(err).to.be(null)
       expect(idea.drawing).to.be undefined
       done()
  
   it "populates ideas in dotstorm", (done) ->
     models.Dotstorm.withLightIdeas {}, (err, dotstorm) ->
-      expect(err).to.be null
+      expect(err).to.be(null)
       idea = dotstorm.groups[0].ideas[0]
       expect(idea.description).to.be "open to creative possibility"
       expect(idea.drawing).to.be undefined

    models.Idea.findOne {dotstorm_id: @dotstorm._id}, (err, idea) =>
      expect(fs.existsSync idea.getDrawingPath("small")).to.be true
      idea.remove (err) =>
        expect(err).to.be null
        expect(fs.existsSync idea.getDrawingPath("small")).to.be false
        done()


  it "saves tags", (done) ->
    models.Idea.findOne {dotstorm_id: @dotstorm._id}, (err, idea) =>
      expect(err).to.be(null)
      idea.set("taglist", "this, that, theother")
      expect(_.isEqual idea.tags, ["this", "that", "theother"]).to.be true
      tagset = ["one", "two", "three"]
      idea.set("tags", tagset)
      expect(_.isEqual idea.tags, tagset).to.be true
      idea.save (err) ->
        expect(err).to.be(null)
        models.Idea.findOne {_id: idea._id}, (err, doc) ->
          expect(err).to.be(null)
          expect(doc).to.not.be(null)
          expect(_.isEqual tagset, doc.tags).to.be true
      done()

