Fixed bugs with newline sequence implementation.

Fixed bug with comments in test file.