Fix a bug on parsing comment text. Add some tests.