When the test creates new files, they now appear correctly with ajax.
Now it will also remove files that are taken away when the test ran