built shared tests for contents_array