Fixed processing if no input files are present
Updated unit tests