adds tests for cursor.close