Delegate subtraction partial fix and test added. (#541)

--HG--
extra : source : 2d81d2f08ec720fdb1efc9a135956511094785e8
Merge pull request #542 from iskiselev/DelegateSubtraction

Delegate subtraction partial fix and test added. (#541)