Add tests for `rectFromPtDim` and `rectInterp`