Fixing Issue 740

This pull request fixes issue https://github.com/TeamMentor/Master/issues/740 caused by clicking several times the submit button.

Adding some unit test to this process.