added some controller spec test cases