Added auto reconnect tests to phpunit