added search to clip api and tests