tests: allocator_test will exit with non-zero if it fails

Previously it would fail silently.

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