fix tests for new onFlush PageListener method