Added method to test file ownership