Add tests for inner pointer checks.