test for sprintf