Allocator: move test case specific stuff to the test case

This shrinks the interface considerably.

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