Added testcase for a bug where multiple values were not passed on.
Also fixed the bug and included mocha as a devDependency.