unit test for new algo