refactor: encapsulate acceptance test file system communications in Events type
refactor: address code analysis violations