added functional test for controller and modifying the grunt task to run functional tests