additional test, fixed bug: not ignoring invalid tokens