Reconstructed Plugin class and added client_connected test