tests: cleanup and maintenance

Signed-off-by: David Aguilar <davvid@gmail.com>
compat: use ustr() for python3 compat

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