update lexer contract test with better checks for line-seperator handling