test refresh-hook