Add test for percent handling in format strings