remove CanonicalizePath overloads, test for toplevel behaviour