Added some unit-test for View class