SubmitOrder and tests