Rank tests and regression rank scores tests are modified for models with measurement errors. In some situations the modified tests are still distribution-free.