Test server improvements

You can simply write (argv.length > 0 && flags.indexOf(argv[0] !== -1)) into one line.