Duh, brain fart. It works in the test because they're two different cursors.