Don't use hardcoded visibility settings

Also, intialize pointer in test