pip-swh-packages: Fix extra category deps when using testing flag
Some dependencies are of the form module[a,b]. Prior to this commit,
this resulted in dependencies of the form
module[a,b][testing]. Those are not understood by pip.
This fixes that behavior to merge the extra testing category
dependency: module[a,b,testing]
Related T1454