adding flash and addressing test exit