Make one of the cli test synchronous

It should fix test execution for node 0.8