Checks done faster

exchanged by a less expansive check.
Same changes introduced for record\io

The class in record\io gets the same changes.
Introducing test cases record\io

Adding test case for CsvInputFormat, which check the correct windows
line handling.