Adds basic functional tests, using mocha + sinon + chai