Wait until transactions have expired.

Required to avoid spurious memory leaks.

We don't do a real wait, of course - we fake one.
Fix UT failure.

Not sure why, but this test just started failing. Fix it.
Merge pull request #59 from Metaswitch/fix-leak

[Reviewer: Matt] Wait until transactions have expired.