Added some simple test for the function getToken
Added the function body of getToken
which only tested for ADD and SUBTRACT