fix test: only reuse non const pointers