added LocalTest and respective test cases. Fixed a bug in SideEffectCapStep around reset().