Stub process functions properly in emacs unit test