add tests for api private extension