Revert "tests.py: fixing compile error"

This reverts commit 4a2c0d9b393ce61db71acf54499001f83ec25f63.