test: add test case for last token is filterd