You need to interpolate the `$testseq` variable with one of the following ways:
* `$file == *_"$testseq"_*` (here `$testseq` considered as a fixed string)
* `$file == *_${testseq}_*` (here `$testseq` considered as a pattern).
Or the `_` immediately after the variable's name will be taken as part of the variable's name (it's a valid character in a variable name).