Add a new test for the error case that doesn't specify 'type' parameter.