Replaced broken recursive delete with rimraf module.
Fixed test to pass new recursive delete.