TokenStream tests