add test for attachents