ADDING TEST cases. fix a bug of table update/delete with function field.