test & implement init, check & free

Signed-off-by: Wilfried Chauveau <ithinuel@gmail.com>
add test & start implementation for realloc

Signed-off-by: Wilfried Chauveau <ithinuel@gmail.com>