fix handler uts memory leaks
Merge pull request #38 from Metaswitch/ut_memory_leaks

Fix up all the memory leaks in the original attempt at the Handler UTs