Modifies path in hookTest