Added Tests for filterFiles
Moved regex declarations and added TODO