Add tests for external extraction