add and remove file with tests