Tiny formatting tweak to call to bs_malloc_output()
Added bs_save_base64 and testcase.

Also change hex tests to run in CK_FORK mode.