tests: eliminated format size warnings

Add unsigned long casts to silence format size warnings.

Signed-off-by: Kees Cook <keescook@chromium.org>