improved phpunit for token stream bugfix