created test for controllers and create jquery mock