add unittests for filesummaries and handle none number input for validFileOnly