move all excluded condtions into isExcludedFromZip and add tests