Make ddd_price.rb test pass. Is this correct?
Fixed most unit-test for state.