add inverse transform and tests