build: put undomanager.c in the public classes
build: simplify tests/Makefile.am