refs #23 fixed bug for creating table, and test