added few more test cases for controller and models