maint: Change subdirs order of Makefile.am to enable tests over programs.