implemented talloc_realloc, fixed tests