Fix ip collector tests
pep8