Refactor tests, introduce util classes (Filesystem, ProcessExecutor)