Reactivated simulation functionality in policy engine

Previously we had deactivated the ability to simulate
the results of an API call and run a query.

This change reactivates that functionality by syncing it
with updates to the policy engine made since deactivation
and reactivating the tests.

Change-Id: I66b593aa3603147503c92ac7db7ad6c8c1f8122d
Merge "Reactivated simulation functionality in policy engine"