Adding test for counting newlines.