Fix login tests so they fail for the right reason