Fix for updateCouch

The problem was that the updateCouch function was not really using the passed argument.

Also, I added the AfterEach(), to close the connection.