test DNN: the main program