Added more tests for anchor switching