Fix race condition in cli_test.py

Was causing Wercker to fail.