mh-mm-inline-media-tests needs an autoload cookie because it is referenced by mh-display-msg.
This bug has been present since mh-mm-inline-media-tests was introduced, in 2002, but was masked until recently because mh-display-msg also calls mh-make-buffer-data, which autoloads the needed mh-mime library.
In April 2023, commit feef1a0592d updated the byte compiler optimizer to know that make-hash-table is side-effect-free. Because make-hash-table is the core of mh-make-buffer-data, mh-make-buffer-data is now inlined by the compiler, and calling it no longer loads mh-mime as a side effect.
This was fixed July 2023 by Bill Wohler, who added "(require 'mh-mime)" to mh-show.el with commit a92ee5ca3c.