first stab at tests for attachment.js