Fix to set remote url only before test