Client API: add method to query connection state
New line at end of file
Add a test for goto_line