fix test scripts

    -the gain and name of the file are parameters