@Test
	public void testCodeUnitScope_UndefinedData() throws Exception {
		//
		// Turn on Undefined Data scope and make sure only that scope yields matches
		//
		goTo(0x1004269);

		setCodeTypeFilters(false, false, true); // only accept undefined data matches
		setInput("\\x65");

		performSearchNext(addr(0x1004270));

		// Turn off Undefined Data scope and make sure we have no match at the expected address
		setCodeTypeFilters(true, true, false); // don't accept undefined data
		goTo(0x1004260);

		performSearchNext(addr(0x1004300));	// this is defined data past where we undefined match

	}
Tests for searching memory for hex reg expression.
Ghidra/Features/Base/src/test.slow/java/ghidra/features/base/memsearch/MemSearchRegExTest.java