Added a unit test for checking folder owner changing and removed some unused imports