Add general test for spatial tree