Fix format key in the parsed pattern
Fix tests now that parser is added