Fixed file name validation unit test + added newline

- fixed file name validation unit test
- added "\n" as forbidden character in isFileNameValid()