Fix pam tests and groups test.
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 1e55768..9b46808 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -8,14 +8,14 @@
 
 check_LTLIBRARIES = libgroups_preload.la
 libgroups_preload_la_SOURCES = groups_preload.c
-libgroups_preload_la_LDFLAGS = -no-undefined -avoid-version -rpath /foo -module -shared
+libgroups_preload_la_LDFLAGS = -no-undefined -avoid-version -rpath /foo -shared
 
 if PAM
 TESTS += $(PAM_TESTS)
 
 check_LTLIBRARIES += libtestpam_preload.la
 libtestpam_preload_la_SOURCES = testpam_preload.c
-libtestpam_preload_la_LDFLAGS = -no-undefined -avoid-version -rpath /bar -module -shared
+libtestpam_preload_la_LDFLAGS = -no-undefined -avoid-version -rpath /bar -shared
 
 check_PROGRAMS = testpam
 testpam_LDADD = -lpam
diff --git a/tests/pam_duo-1.t b/tests/pam_duo-1.t
index 03c3157..0c7e81f 100644
--- a/tests/pam_duo-1.t
+++ b/tests/pam_duo-1.t
@@ -1,7 +1,7 @@
 mockduo down
 
   $ ${TESTDIR}/testpam.py -d -c ${TESTDIR}/confs/duo.conf -f whatever true
-  [4] Failsafe Duo login for 'whatever': Couldn't connect to localhost:4443: Connection refused
+  [4] Failsafe Duo login for 'whatever': Couldn't connect to localhost:4443: Failed to connect
   
 down and fail secure
   $ ${TESTDIR}/testpam.py -d -c ${TESTDIR}/confs/mockduo_failsecure.conf -f whatever true