Testing read and write Avro files in local file system and HDFS