Added in a bit of cursor validation without decoding. Added several tests to check the endpoint of cursors. Added valid error message for cursors