print errors in pointer comparisons during tests