Add: test for log and check for file after logging