caa: fix tests for Python 3

Signed-off-by: Johannes Dewender <github@JonnyJD.net>