Fix tests for >1 CPU (fixes #99)