attachment model and tests wip