add sprintf tests from RT tickets