Modified getToken()

Modified getToken() inside Token.c and added several test for it