libtest: fix #40 (use nullptr instead of NULL)