added code and tests for the new TPS warp