Test use getPathname() instead of string casting to get BinaryFileReponse file path