test-dpi: Fix test DpiStatesController

- to use mock.