Usergrid 911

Added a bit of error checking to throw back a proper error message. Mostly added tests to work out what cursor can be detected with this new error checking and which cursors can't.