tests done but optarg