Added tests for toArray and fromArray content item functionality