test: fix missing-format-attribute warning

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
test: fix unused-but-set-variable warning

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>