Add test covering table_names() with connection param.