Fix offset problem in RasterProjection and add test for it