api and tests for extension.