fix a unittest error when upgrading SQLAlchemy to 0.8.6

In SQLAlchemy 0.8, removing a record from the collection will have
the effect of the row being deleted on flush.

Change-Id: Id19a1059021e904d487f4d61263a30fa342af013