Add basic test for run task
Restored functional test