Added utility to test trust algorithm