remove stable flickering, fixes #1557
authCtrl tests now working, replaced window for $window