Fixed small bug in gramitizeTokens function.
Added unit testing for Trigram.