Testing the law of one price when trade takes time