after archive, delete stock states when no more transactions

and another test