Fixes login problems with library tests