Fix bug when moving container into another container

Added functional and davfs2 tests to ensure correct behavior.