Added integration tests for several executors. Fixed several related bugs.

563u, 72i