TODO: update the test to use InvokedOperationsLoggingDialect to know how many calls to getTuples is used.