casts test: improve debug output on failure

Signed-off-by: Matthias Kretz <kretz@kde.org>