Tranformation rules adjustment. Added test class and test state machine.