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.