Added adf-z test simulation code