[buildsys] fix the tests Makefile.am