Fixing setLocation tests