added new test function and change script to find equilibrium and hunt in those situations