Execute the task during evaluating policy

Creating test for the task service.