Improve spec test for running in parallel.