fix endcomment handling
more test for beginning/end comments