test both single and multi-process mode as well