Fix reference to $this in CursorTest::testRecreate() closure