Update attachable_with_metadata tests for new API