move mocha and expect into node modules
use chai instead of expect
Refactor tests with chai spies, more chai features