add unit test for analyzer