integration tests for delaying queries and prepared statements