Adding unit tests for the exec APIs.