fix for bug D3926
re-structuring cursor_test.py into the three respective .test files