Plug connection leak from table_spec.rb

Closes #328