public function errorQueriesThrowError($expression)
{
$x = new \stdClass();
$x->foo = new \stdClass();
$x->foo->foo = 'asdf';
$query = $this->createFlowQuery([$x]);
eval('$result = ' . $expression . ';');
$this->assertInstanceOf(FlowQuery::class, $result);
$result->getIterator();
// Throws exception
}