adding use_agg flag to np_test command