HDFS-6966. Add additional unit tests for encryption zones. Contributed by Stephen Chu.

(cherry picked from commit bf64fce78c5474f4d6ead839c4de18c8401a54d6)