making sure all connections are closed when tests ran.
Made sure all open connections are closed after tests ran
Corrected the second BRPOP test function to close second connection