immutable applySubstitute, breaks +9 unit tests