finished first pass at attachment unit tests