Event.next: add a simple test which measure the heap usage of the event queue

This code is not called anywhere, but can easily be hooked in for
manual developer testing.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>