Test factories clean up.