Fixed some bugs with connection detection. Added test cases for updating DVR model based on DVR info.