tests: minor whitespace and comment cleanup

Signed-off-by: David Aguilar <davvid@gmail.com>
tests: fix tests on Python 3.4

Python 3.4's object.__new__() takes a single parameter only.

Signed-off-by: David Aguilar <davvid@gmail.com>