Add tests for scriptTask