Added test for limit in file.sed.

I created the test in `tests/unit`; not sure if this is considered an integration test.

Please advise if it should be moved or if there's a better way to write this.

Thanks.