WIP for flash provider update so that flash bag is handled internally
Fixing provider test