Good points.  The goal here is as you said: I exclude all testing code for deployments (packaging), so things shouldn't break if it's missing.  There are good implicit ways to do this without having an explicit setting (like checking to see if main/tests/ has an attribute loadtesting).