"testparm - check an smb.conf configuration file for internal correct- ness" If you write "passdb backend = fuck" into the smb.conf and run testparm, testparm says the configuration file is OK. It obviously isn't OK - passdb backend fuck doesn't exist. Therefore testparm is broken.
testparm has never performed validation of parameter string values.