Improve robustness of submission test

The current submission tests have tight timing requirements, which are likely to fail in a busy environment, such as CI runners. This should be investigated and improved.