fixes tests which require logging in

Change-Id: I1b8274cb885716f1eabb18f1598349ad5a00bcfe