[dist] update testpy.py

The maximum group number is now limited to 32767.