[3.10] gh-96073: Fix installed tests by adding to Makefile.pre.in (#98072) This was broken in #98045 but already fixed on main.