Allow mock logins in controller tests

Change-Id: I34dff71341760399f49c18f72d0931e233c631d2