Mocks for file modification thread test

Using mocks for most of the file modification service tests