Finished undo tests and added modal tests