test/lib: Hook into `make check`