Refactored contextual error logging connector tests.