test restructured code and log cleanup