How Motor currently tests that it sends killCursors correctly is very hacky: it copies the closing cursor's id and nRetrieved into a new cursor and periodically attempts a getMore on the copied cursor until it gets a characteristic server message that shows the cursor is gone on the server.
Instead, depend on MockupDB and use it to test directly that a killCursors message is received.