           assert.equal image.dest, 'images_test/Wm/PH/f3/I0'
           assert /[a-z0-9]{24}/.test image.tmpName
           assert.deepEqual image.meta, {}
-          assert.equal image.gm, null
+          assert.equal typeof image.gm, 'object'
 
       describe '#getMeta()', ->
         it 'should return image metadata', (done) ->

          @timeout 10000
          versions[1].quality = 50
          image.src = __dirname + '/assets/photo.jpg'
          image.resize JSON.parse(JSON.stringify(versions[1])), (err, version) ->
            assert.ifError err
            gm(version.src).identify (err, value) ->

        it 'should set colorspace to RGB for resized image', (done) ->
          @timeout 10000
          image.src = __dirname + '/assets/cmyk.jpg'
          image.gm = gm image.src
          image.meta.colorSpace = 'CMYK'
          image.resize JSON.parse(JSON.stringify(versions[1])), (err, version) ->
            assert.ifError err
