Added final line detection tests for small files.