More unit tests for handleSubmit