Unittest added for postgresql char length fix