added tests for attchmentAttribute