Testing databinding with login ctrl in angularjs