Add integrate test for flash