testpath method in module Kernel instead of class Object