test scoped_array