Added test for limit in file.sed.
Merge pull request #3715 from rca/test_file_sed_limit

Added test for limit in file.sed.