change handler specification and add simple rountrip test