add more robust logging system for failing expectations