Add tests for pointer value matches