locallib.get_lines_count(): universal newlines support added.
Added tests for locallib functions.