add test for sidebar controller