Filling in tests for the directory upload case