Added a test to see if options is set before dereferencing the object to
check for noRevoke.
Fix to check valid 'options' before noRevoke chk
Thanks, don't know why I didn't add that check myself.
I've committed a slightly refactored version and added two tests: