added remaining unit tests to view spec