Add test coverage for error handling of Line->getDriverClass
Fix unhandled error in Line->getDriverClass