Change getRootView visibility to improve testability