Add test for raw primitive attribute defaults and copy-on-write