Fixes false positive in cursor remove test