2 minor updates

fix: error assertion now takes a callable argument, instead of only functions
add: stub assertion (same as spy)