Fix a bunch of chef-pedant tests, improve client validation and behavior.