tests: add testcases for strprintf