Adding functional test for file ownership and permissions