seperated table tests, added code to restart a connection if closed (e.g connection: close)