fixing "test failed" in testSliceImageFromFunctor