A simple randomization test for spatial correlation in the presence of common factors and serial correlation