simplified example without chai and mocha as promised