Add test for files_for_commit.