Fix behavior of helpers in run locally block

It is comfusing that call to `test()` and `capture()` helper methods in `run_locally` block behave differently from that in `on` block.