fix for search on test_weights, ajax for search on test_weights