[Decision Trees] Unit test for task lifetime

Summary: Test full claim/process/finalize lifecycle.

Test Plan: unit tests

Differential Revision: http://phabricator.tullo.ch/D39