Fix missing-ptrs_to error by working around it in test