Make test_caa.test_set_useragent version-independent

Signed-off-by: Wieland Hoffmann <themineo@gmail.com>