build: add cmake dependency from test plugin to api