added agent restart test