[CHEF-4022] Write tests. Exit with a non-zero code.