test to make sure no corruption of orignal table
fix bug when filtered table replicate header n*n times