add test for analyse methods