[test] Add self-tests for snprintf()

Signed-off-by: Michael Brown <mcb30@ipxe.org>