Some angularjs old testing changes from way back