added testing of flash programming