* testglib.c: Make all aux functions static. * tests/Makefile.am, tests/dirname-test.c, tests/type-test.c: New tests dirname-test and type-test, from testglib.