Added the test for getToken
to detect equal, not equal and logic not.
Updated the function getToken
to detect equal, not equal and logic not.