You also don't need to check if "testcode" is in kwargs, since it should be filled in by ```_set_defaults```.