Enhanced test 1 to test Truncate by pathname