add -Wall to CFLAGS, and fix testCloseTag method.