Fix for #1451

Line codec was using an undefined variable which casued it to throw and exception.

Fixed and added tests for line codes

Closes #1451
Squash extra lines
Verify method is getting called