add test for analyzer