fix some more tests by uncommenting the write_attribute for CPK attrs