adding tests for passSourceQueryViaState option