HDFS-5899: implement tests for fsimage and edit log