tests for array pointer retrieval and storage