Make View.view public and added some tests