Update fix to only reconnect table if specified dataset matches the table structure
Improve assertions in unit tests for GH-172
Merge branch 'hotfix/172'

Fixes #172