'"entity_test" entity type does not exist' on attempted module uninstall
Sounds like you installed the entity_test module accidentally and then disabled test modules afterwards.

Set that flag to TRUE, clear cache, uninstall search and the entity_test module (look for other enabled _test modules too) then set that flag to FALSE again.