Added unit tests for ViewManager