Add an execution engine test.

This is based on the factorial example.
Merge pull request #13 from pcc/executionengine-test

Add an execution engine test.