fixed bug in trust tests, where p2 value was calculated before p1 finished