fix bug about drop table
constraint some tests