Remove `DM_TEST_SRC`, duplicate tests where necessary. Add infrastructure to keep duplicates in sync.