Fix test of locahost auth exception