Added IllegalLineError check to unit tests.