build: run some tests during make check (and distcheck)