Test how to commit in GUI