Write log to working directory, not `tests` directory