How to write testable controllers with private methods in AngularJs? How to write testable controllers with private methods in AngularJs? angularjs angularjs