Added test for script task with result variable.