TST: added metadata pass-through test for table_factory

fixes #340