added test cases for sidebar
added more unit tests