Add a test on adding files

Related to #60.