Add tests for attachment type