fix login test, don't always throw an exception