Tidy up unused packages

Add a test for BatchFileApplicationHookSubscriber