Add dump entity info finally block to tests