[ Makefile ] Added API tests to the test suit

Cherry picked from 73769ee6d6c5ecacb76af652eae8fa2c3935b570.
Merge branch 'maint-2.4.0'