Add in unit test of the submit action and re-work as per feedback from coleman