Automated tests with Mocha to learn JavaScript