Fix PostType fragment parsing when fragment is uri encoded
Add toStringWithoutFragment() method to PostType
Add assertMatch() method to PostType