                     Object.keys(@doc).forEach (field) =>
                         # if the value is null, body[field] is null
                         # but assertion should be true
-                        body[field]?.should.deep.equal @doc[field]
+                        expect(body[field]).to.deep.equal @doc[field]
                     body.should.have.property 'binary'
                     @binary = body.binary
                     done()

                    should.not.exist err
                    should.exist body
                    body.should.have.property 'rows'
                    body.rows.length.should.equal 3
                    body.rows[0].id.should.equal "_design/device"
                    body.rows[1].id.should.equal "_design/doctypes"
                    body.rows[2].id.should.equal "_design/tags"

                    should.not.exist err
                    should.exist body
                    body.should.have.property 'rows'
                    body.rows.should.have.length 4
                    body.rows[0].id.should.equal "_design/contact"
                    body.rows[1].id.should.equal "_design/device"
                    body.rows[2].id.should.equal "_design/doctypes"
