Added test case for testing connection parsing and changed the parser
slightly for nicer results.