added some tests for the removeFile method
some refractoring of the tests
line added
Merge pull request #3014 from albualexandru/history-bug

added some tests for the removeFile method