attach: add some tests