Fix utest setup - include code under test in utest target.
Fix 'free called without malloc' errors.