[TEST] Use canonical path for comparison rather than absolute path