fix ThenReturn for non trivially copy constructible type