TEZ-1587. Some tez-examples fail in local mode (Contributed by Prakash Ramachandran)
(cherry picked from commit e328055e61a8dcaa1beed25e6da47f4a2279f3b6)