p2ptrade.Agent testing/bugfixing