Fix test with non-threaded perls