extracting warnings from tests