Login race bugfix

Bug fix for a race that happened during daisy online login. 

Also fixed a failing test and test parameters.