Add some tests for gprintf