in get_login_infos i see 4 places an error can be raised, yet this only tests one case, should there be more tests here?