fix segfault for info.c
merge tests/info.test