Fix for when multiple values are not passed on.

Fixed the bug, documented with testcase (the second) and included mocha as a devDependency.