added integration test for arraymorph writing