Move cleanup to after tests.

- Assign test id to each iteration.
- Clean up only records associated with that id to avoid race
  conditions.