Add test usecases for saving and flash