Fix test + fix security config