[libc] add tests to WrapperGen