allocator: hook up the test case, begin to narrow the interface

Unfortunately some of the allocator tests seem to fail, but the process
exits with 0.

Note also: most of the allocator interface is only used by the test
case. There's a risk the interface we're actually using is less well
tested.

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