Updated line numbers to match tests with constructors
- Removed some unused usings.
- Implmented Encoding for NullTextWriter.