Add test cases for list controller