test for switch of locations