add test for location diff