Test-time Offline Reinforcement Learning on Goal-related Experience