fixede clearTablesfortesting method