tests for malformed DeclarationList and ParamList