Does this exist so that tests don't have to serialize the predicates? If so, maybe having a helper function in the tests that serializes the predicates and using activateStreamForEngine() is better.