unit test for pursuit algo