Add an additional test for pointer handling bugs