Add unit tests for offset transformations.