Fixed test errors.

Merged test_idgenerator.py into test_networkconnection.py, as the according
modules were merged, too.