mock trip and logger