tests: more fixes in Makefile.am