Added tests around save/discard/cancel popup