Fix bugs and test the configure_sssd method.