Fix some issues related with read body part functions.

Test cases that do not pass at the moment are also commented.