test and update_table