unit test for PIG-3833
https://issues.apache.org/jira/browse/PIG-3833