Add stub specs for update operations.
Fix problem with update operation stubs.

Also introduce support for blocks as `with` parameters for stubs to allow dynamic decisions.