DOC testnd:  better error message for invalid kwargs