Fixing bug for URDF test and modifying backtest for pairs trade.