Also need to use before for other /api methods.
Fix test for /api/searches.