add test for condition and malloc hook.