Add a test of sprintf