Fixed test for BasicAuthFilter to not use deprecated method