@Test
	public void testPasteLocalLabelNoFunction() throws Exception {
		// in Browser(2), select code units 032d through 0334.
		// copy
		goTo(toolTwo, 0x0326);

		Address addr = addr(programTwo, 0x0326);

		makeSelection(toolTwo, programTwo, addr(programTwo, 0x032d), addr(programTwo, 0x0334));

		copyToolTwoLabels();

		// in Browser(1), go to 032d
		// paste
		// verify that the default label at 0331 is replaced by RSR10;
		// the default label at 032d is removed
		goTo(toolOne, 0x032d);

		pasteToolOne();

		Symbol symbol = getUniqueSymbol(programOne, "RSR10", null);
		assertNotNull(symbol);
		assertTrue(symbol.getSource() != SourceType.DEFAULT);

		cb.goToField(addr(programOne, 0x0331), LabelFieldFactory.FIELD_NAME, 0, 0);
		ListingTextField f = (ListingTextField) cb.getCurrentField();
		assertEquals("RSR10", f.getText());

		addr = addr(programOne, 0x032d);
		Symbol[] symbols = programOne.getSymbolTable().getSymbols(addr);
		assertEquals(1, symbols.length);
		symbol = symbols[0];
		cb.goToField(addr, LabelFieldFactory.FIELD_NAME, 0, 0);
		f = (ListingTextField) cb.getCurrentField();
		assertEquals(symbol.getName(), f.getText());

		undo(programOne);
		//default label should come back at 331
		cb.goToField(addr(programOne, 0x0331), LabelFieldFactory.FIELD_NAME, 0, 0);
		f = (ListingTextField) cb.getCurrentField();
		assertEquals(1, f.getNumRows());

		symbols = programOne.getSymbolTable().getSymbols(addr(programOne, 0x331));
		assertEquals(1, symbols.length);
		assertEquals(symbols[0].getName(), f.getText());

		redo(programOne);
		cb.goToField(addr(programOne, 0x0331), LabelFieldFactory.FIELD_NAME, 0, 0);
		f = (ListingTextField) cb.getCurrentField();
		assertEquals("RSR10", f.getText());

	}
Test the plugin that deals with cut/paste comments and labels
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/clipboard/CopyPasteCommentsTest.java