Fix uninstalling producer.

Hi! I found that two tests failed and fix it.