The test for a headless agent session with no usable agent folder now also saves to a path outside the agent folders, checks that the error names the missing write authority, and checks that no file was written.