Add tests for the opensearch functionality