@Test
	public void testCodeUnitScope_DefinedData() throws Exception {
		//
		// Turn on Defined Data scope and make sure only that scope yields matches
		//
		goTo(0x1001000);// start of program; pointer data

		setCodeTypeFilters(false, true, false);

		setInput("10000101");
		performSearchNext(addr(0x1001004));

		// Turn off Defined Data scope and make sure we have no match at the expected address
		goTo(0x1001000);// start of program; pointer data
		setCodeTypeFilters(true, false, true);
		performSearchNext(addr(0x1002d27)); // this is in an instruction past the data match

		// try backwards
		goTo(0x1002000);
		setCodeTypeFilters(false, true, false);

		performSearchPrevious(addrs(0x1001004));
	}
Tests for the Binary format in searching memory.
Ghidra/Features/Base/src/test.slow/java/ghidra/features/base/memsearch/MemSearchBinaryTest.java