Added basic tests for the attachment model