Fix an invalid pointer dereference in a test.