Add tests for file-level application
Also refactor the apply tests to use a common type now that there are
three variants that do almost the same thing for each test.
This is a binary file and will not be displayed.
This is a binary file and will not be displayed.