HDFS-5673: more tests and starting to enforce validations