Better logging for tests