Improve token_and_options regex and test

1. Strip an erroneous double quote from the params split regex
2. Add test cases to test the token and option extraction functionality
Not really. All existing test cases are kind of integration tests. I tested it manually in rails console, and there was an extra leading double quote for one of the helper methods, but it didn't impact the end result somehow. If necessary, I could try to write a negative unit test.