Added ManualTaskExecutor.
Test codes now rely on the recently added ManualTaskExecutor.