Controller test cases