added unit tests for HADOOP-3733