Fix CLI tests to work with node v0.11