switch from should to chai, and make test delete tmp directory after test