Added 'test_connection' method to RTorrent class