Tested that the arguments sent to on_submit are correct.