fix tests for guarded_ptr and exempt_ptr