Simplify ptr tests.