         it 'should set corret orientation for resized image', (done) ->
           @timeout 10000
           image.src = __dirname + '/assets/rotate.jpg'
+          image.gm = gm image.src
           image.meta.orientation = 'TopLeft'
           image.resize JSON.parse(JSON.stringify(versions[1])), (err, version) ->
             assert.ifError err

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

          versions[0].suffix = ''

          image.src = __dirname + '/assets/photo.jpg'
          image.gm = gm image.src
          image.tmpName = 'ed8d8b72071e731dc9065095c92c3e384d7c1e27'
          image.meta =
            format: 'jpeg'
