Implemented mode 'file_add'.
Added test for testing mode 'dir_remove'.