Add tests for 'prestocmd submit'