parseFileContent function + unit test