test pattern with trailing default and format