test case for py3 regex deeocopy on cursor