adding tests for attachmentControllers