tools/test/Makefile: add api_selftest_pipe target for QA