Tests: minor fixes.Fixed temporary dir removing.Fixed printing path to log.Module checks moved to the separate file.