finish message testcases rewrite