We need better test coverage for end-to-end scenarios, especially across different platforms (mocking system calls where necessary).