core_test: improve printing on failure

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