test for pairs trading