tests: Fixed test_authentication unit test

Hacky ways to detect login status are bound to break... oh well...