Move strtoll() definition so that it can be used everywhere.
Fixed typo.
Refactor the command cursor flag to be part of cursor_options.
We only should force this for command cursors, otherwise we change expected output for normal commands.
Refactor force_primary to a cursor_option as well.
Integrate comments from review.
Name function properly.
Fixed those tests, as we now have better error codes.