fixed bug in create_table function
updated test for creating table.