attach: add some testcases