Fix setup of adding _flash_types test.

Adding flash types to a controller within any of the tests will result
in a global state change of the controller under test.

This patch will prevent state leaks and allow us to run the test in random order.
Merge pull request #14614 from tgxworld/fix_add_flash_types_test

Fix setup of adding _flash_types test.