Make tests/play.py more reliable.