fix spatial unit test