MT#6195 api tests: provide ./Build test_api

and the option --no-junit

(cherry picked from commit a1309af52a6792fd2248ef2532e2cd6f70bc2ca1)