finished unit test of result analysis