Test cases for controllers