escape message in title; add test name if defined