Added tests for meta_write and meta_copy