For us, the first instance of such tests is a completely blinded test, in which not only is the volume level meticulously adjusted, but great care is taken to ensure that all other conditions are as identical as possible.
Only after such a test do we decide whether and how to proceed, because if there is absolutely no audible difference, there is no need to put in too much effort.
For testing circuit boards, we use standard housings that are indistinguishable from the outside. For devices, we have identical covers that you can simply put over them because they are open at the bottom and back and have a strip of opaque glass in the front so that you can use the remote control. Sometimes we also work with a very thin silk-like material that is illuminated from behind and is therefore completely opaque.
We established very strict rules and procedures over 20 years ago, including a standardized workaround, after we had fallen into different traps for 2 years.
For us, this has been sufficient so far.