add test for reduces traces in case of truncated files