add test, cleanup text_blocker

cleanup text block and add a test