Add unit tests
Check for illegal token names in add() and remove()
Fix faulty logic in toggle()