avoid cursor bugs in test