In Spain the covid tests to travel are not free. Its value varies depending on the location where it is located and each autonomous community manages its own prices.