Improve `_exec` and its test coverage

:+1: