Add output for exec command tests

The tests for the exec functionality would not output anything while using `echo`. This adds the callback to output (`console.log`) the `echo` output.