Fixed coding style
Added unit tests for ToggleViewListener