Line ending and branch test